'use strict';

let { sequelize, defineModel, DataTypes } = require('../db');

// 定义一个模型
let Model = defineModel('questions', {
    promoterId: {
        type: DataTypes.BIGINT,
        allowNull: false
    },
    questionairId: {
        type: DataTypes.BIGINT,
        allowNull: false
    },
    content: {
        type: DataTypes.STRING(80),
        allowNull: false
    }
});

module.exports = Model